package com.sh.data.engine.application.model.request.dataquality;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author tinglan.ys
 * @description:
 * @date 2022/2/18 上午10:16
 */
@Data
@Schema
public class DataQualityAddParExpressionRequest {

    @Schema(description = "分区表达式id,编辑时传入")
    private String id;

    @NotBlank(message = "parExpression不能为空")
    @Schema(description = "分区表达式", requiredMode = Schema.RequiredMode.REQUIRED)
    private String parExpression;

    @NotNull(message = "tblId不能为空")
    @Schema(description = "表id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long tblId;

    @NotBlank(message = "tableName不能为空")
    @Schema(description = "表名", requiredMode = Schema.RequiredMode.REQUIRED)
    private String tableName;
}
